@layout('layouts.clearly')

@section('content')
<div class="page-head" id="news-title">
    <h1>{{ $article->title }}</h1>
</div>
<div class="container page-outer">
    <div class="w640 fl-left news-view clear-fix">
        <div class="news-content">
            {{ $article->body_html }}
        </div>
        <div class="news-foot">
            <div class="author">
                <span class="author-name">{{ $article->author_name }}</span>
                <span class="time">{{ $article->updated }}</span>
                <span class="view-counter">[ Lượt xem: {{ $article->news_view }} ]</span>
            </div>
            @if ($article->logged_is_owner || MyAuth::admin())
            <div class="controls">
                <a href="{{ action('news@index') }}">&larr; Quay lại</a>
                <a href="{{ asset('news/edit/' . $article->id) }}" class="spec recommend" title="Sửa tin tức này">
                    <i class="icon-pencil"></i> Sửa
                </a>
                <a href="{{ asset('news/del/' . $article->id) }}" class="spec warning" title="Xóa tin tức này">
                    <i class="icon-remove"></i> Xóa
                </a>

            </div>
            @endif
        </div>
    </div>

    @include('news.rss')
</div>
@endsection